package com.ftg.learn.bus.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;

/**
 * 用于各层service返回值类的定义
 */
@ApiModel(value = "用于各层service返回值的Api")
public interface MassageForReturn {

    @ApiModelProperty(value = "修改/注册时：某个值为空")
    int user_login_By_NullPointerError = -1;

    @ApiModelProperty(value = "修改/注册时：用户名已存在")
    int user_login_By_usernameIsExist = -1;

    @ApiModelProperty(value = "修改/删除：用户名不存在")
    int user_login_By_usernameIsNotExist = -1;

    @ApiModelProperty(value = "修改：用户输入的旧密码与原密码不匹配")
    int user_login_By_oldPasswordAuthenticationFailed = -1;

    @ApiModelProperty(value = "基础操作记录:删除时 主键为null或空")
    int basicinfo_record_By_delete = -1;

    @ApiModelProperty(value = " 角色赋权:根据角色id 删除对应的菜单权限时 主键为null或空")
    int contro_list_by_deleteOfRoleidError = -1;

    @ApiModelProperty(value = " 角色赋权:根据菜单id 删除对应的菜单权限时 主键为null或空")
    int contro_list_by_deleteOfMenuidError = -1;

    @ApiModelProperty(value = " 菜单管理:添加菜单时 某必填项为null或空")
    int menu_insert_By_NullPointerError = -1;

    @ApiModelProperty(value = " 菜单管理:根据菜单id删除 菜单id不存在")
    int menu_delete_By_NotFoundMenuid = -1;

    @ApiModelProperty(value = " 菜单管理:修改菜单时 某必填项为null或空")
    int menu_delete_By_NullPointerError = -1;


}
